package frontend.components.base;

import frontend.components.other.UserInputCallableAction;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;

public class LabelLinkComponent extends Panel {

    public LabelLinkComponent(String id, String label, final UserInputCallableAction action) {
        super(id);

        Link<String> link = new Link<String>("link") {
            @Override
            public void onClick() {
                action.call(null, null);

            }
        };
        link.add(new Label("label", label));
        add(link);
    }
}
